class Historico < ActiveRecord::Base

  set_table_name 'historico'

  belongs_to :pupil, :foreign_key => "aluno"
  belongs_to :disciplina, :foreign_key => "disciplina"
  belongs_to :ocorrenciahistorico ,:foreign_key => "ocorrencia"


  def get_conceito

    self.conceito.to_s + "-" + self.ocorrenciahistorico.sigla
  end
  
  

end
